home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / System / MCC_SpeedBar / Developer / C / Include / MUI / SpeedButton_mcc.h < prev   
C/C++ Source or Header  |  2000-04-21  |  4KB  |  115 lines

  1. #ifndef SPEEDBUTTON_MCC_H
  2. #define SPEEDBUTTON_MCC_H
  3.  
  4. /*********************************************************
  5. **                                                      **
  6. **      SpeedButton.mcc                                 **
  7. **                                                      **
  8. **              ©1999 Simone Tellini                    **
  9. **                                                      **
  10. *********************************************************/
  11.  
  12.  
  13. /// Support stuff
  14. #ifndef REG
  15. #ifdef _DCC
  16. #define REG(x) __ ## x
  17. #else
  18. #define REG(x) register __ ## x
  19. #endif
  20. #endif
  21.  
  22. #ifndef ASM
  23. #if defined __MAXON__ || defined __STORM__ || defined _DCC
  24. #define ASM
  25. #else
  26. #define ASM __asm
  27. #endif
  28. #endif
  29.  
  30. #ifndef SAVEDS
  31. #ifdef __MAXON__
  32. #define SAVEDS
  33. #endif
  34. #if defined __STORM__ || defined __SASC
  35. #define SAVEDS __saveds
  36. #endif
  37. #if defined _GCC || defined _DCC
  38. #define SAVEDS __geta4
  39. #endif
  40. #endif
  41.  
  42.  
  43. #ifndef MAKE_ID
  44. #define MAKE_ID(a,b,c,d)    ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  45. #endif
  46.  
  47. #ifndef MIN
  48. #define MIN(a,b)    (( a < b ) ? ( a ) : ( b ))
  49. #endif
  50.  
  51. #ifndef MAX
  52. #define MAX(a,b)    (( a > b ) ? ( a ) : ( b ))
  53. #endif
  54.  
  55. #ifndef ABS
  56. #define ABS(a) (((a) > 0) ? (a) : -(a))
  57. #endif
  58. ///
  59.  
  60.  
  61. #define MUIC_SpeedButton    "SpeedButton.mcc"
  62. #define SpeedButtonObject   MUI_NewObject( MUIC_SpeedButton
  63.  
  64. #define BTTAGBASE           0xF76B0100
  65.  
  66.  
  67. /*************************
  68. **      Methods         **
  69. *************************/
  70.  
  71. #define MUIM_SpeedButton_Update         (BTTAGBASE + 1)     /*  PRIVATE  */
  72.  
  73.  
  74. /*************************
  75. **      Attributes      **
  76. *************************/
  77.  
  78. #define MUIA_SpeedButton_Borderless     (BTTAGBASE + 1)     /*  BOOL                I... */
  79. #define MUIA_SpeedButton_Image          (BTTAGBASE + 2)     /*  struct MyBrush  *   I... */
  80. #define MUIA_SpeedButton_Label          (BTTAGBASE + 3)     /*  STRPTR              I... */
  81. #define MUIA_SpeedButton_ViewMode       (BTTAGBASE + 4)     /*  ULONG               IS.. */
  82. #define MUIA_SpeedButton_Raising        (BTTAGBASE + 5)     /*  BOOL                IS.. */
  83. #define MUIA_SpeedButton_MinWidth       (BTTAGBASE + 6)     /*  BOOL                I.G. */
  84. #define MUIA_SpeedButton_NoClick        (BTTAGBASE + 7)     /*  BOOL                I... */
  85. #define MUIA_SpeedButton_SpeedBar       (BTTAGBASE + 8)     /*  Object *            ISG. */
  86. #define MUIA_SpeedButton_QuietNotify    (BTTAGBASE + 9)     /*  BOOL                .S.. */ /* PRIVATE */
  87. #define MUIA_SpeedButton_ToggleMode     (BTTAGBASE + 10)    /*  BOOL                I... */
  88. #define MUIA_SpeedButton_ShowMe         (BTTAGBASE + 11)    /*  BOOL                ..G. */ /* PRIVATE */
  89. #define MUIA_SpeedButton_ImmediateMode  (BTTAGBASE + 12)    /*  BOOL                I... */
  90. #define MUIA_SpeedButton_StripUnderscore (BTTAGBASE + 13)   /*  BOOL                I... */
  91. #define MUIA_SpeedButton_SmallImage     (BTTAGBASE + 14)    /*  BOOL                IS.. */
  92. #define MUIA_SpeedButton_Sunny          (BTTAGBASE + 15)    /*  BOOL                I... */
  93. #define MUIA_SpeedButton_MinHeight      (BTTAGBASE + 16)    /*  BOOL                I.G. */
  94.  
  95.  
  96. /*************************
  97. **      Values          **
  98. *************************/
  99.  
  100. #define SB_MAXLABELLEN                      40
  101.  
  102. #define MUIV_SpeedButton_ViewMode_TextGfx   0
  103. #define MUIV_SpeedButton_ViewMode_Gfx       1
  104. #define MUIV_SpeedButton_ViewMode_Text      2
  105.  
  106.  
  107. /*************************
  108. **      Structures      **
  109. *************************/
  110.  
  111. struct MUIP_SpeedButton_Update { ULONG MethodID; ULONG Selected; };
  112.  
  113.  
  114. #endif /* SPEEDBUTTON_MCC_H */
  115.